<?php
$ciclos = $this->db->query_select("cllg_college_cycle");
$diplo = $this->db->query_select("cllg_career");
?>
<form>
    <table width="50%">
        <tr>
            <td colspan="2">
                <legend>Seleccione ciclo y carrera para generar reporte</legend>
            </td>
        </tr>
        <tr>
            <td>
                <label for="ciclo">Ciclo:</label>
            </td>
            <td>
                <select id="ciclo" name="ciclo">
                    <?php
                    foreach ($ciclos as $c){
                    ?>
                        <option value="<?php echo $c['CODE']?>"><?php echo $c['CODE']; ?></option>
                    <?php
                    }
                    ?>
                </select>
            </td>
        </tr>
        <tr>
            <td>
                <label for="career">Carreras</label>
            </td>
            <td>
                <select id="career" name="career">
                    <option value="all">Todas</option>
                    <?php
                    foreach ($diplo as $d){
                    ?>
                        <option value="<?php echo $d['ID']?>"><?php echo $d['NAME']; ?></option>
                    <?php
                    }
                    ?>
                    <option value="-1">Alumnos no inscritos este ciclo</option>
                </select>
            </td>
        </tr>
    </table>
</form>